package com.warmheart.base.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 
 * @ClassName: WhUploadConfig
 * @Description: 文件上传配置
 * @author ZhangJianyang
 * @date 2025-06-16 09:37:02
 *
 */
@Configuration
@PropertySource(factory = YamlPropertySourceFactory.class, value = "classpath:wh-upload-config.yml")
@ConfigurationProperties(prefix = "wh.upload")
public class WhUploadConfig {

    // FTP服务器所在的系统类型，用于判断路径分隔符
    public String systemType;

    // FTP服务器所在的地址
    public String baseUrl;

    // 连接FTP服务器的端口号(默认设置为21即可)
    public String ftpPort;

    // NGINX服务器地址类型
    public String netType;

    // NGINX服务器域名地址
    public String domainUrl;

    // NGINX服务器提供WEB服务IP地址
    public String netUrl;

    // NGINX服务器提供WEB服务端口号
    public String netPort;

    // 文件存放的基本路径
    public String imagePath;

    // 文件存放的基本路径
    public String videoPath;

    // APP存放的路径
    public String appPath;

    // 文件存放的基本路径
    public String commonPath;

    // 登录FTP服务器的用户名
    public String userName;

    // 登录FTP服务器的密码
    public String passWord;

    // FTP用户根目录路径
    public String homeDir;

    // 上传方法
    public String uploadType;

    // 下载根目录路径
    public String downloadDir;

    // 下载路径
    public String downloadPath;

    // zip文件路径
    public String zipFileName;

    // 图片文件类型
    public String imgType;

    // 验证码路径
    public String codePath;

    public String getSystemType() {
        return systemType;
    }

    public void setSystemType(String systemType) {
        this.systemType = systemType;
    }

    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    public String getFtpPort() {
        return ftpPort;
    }

    public void setFtpPort(String ftpPort) {
        this.ftpPort = ftpPort;
    }

    public String getNetType() {
        return netType;
    }

    public void setNetType(String netType) {
        this.netType = netType;
    }

    public String getDomainUrl() {
        return domainUrl;
    }

    public void setDomainUrl(String domainUrl) {
        this.domainUrl = domainUrl;
    }

    public String getNetUrl() {
        return netUrl;
    }

    public void setNetUrl(String netUrl) {
        this.netUrl = netUrl;
    }

    public String getNetPort() {
        return netPort;
    }

    public void setNetPort(String netPort) {
        this.netPort = netPort;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public String getVideoPath() {
        return videoPath;
    }

    public void setVideoPath(String videoPath) {
        this.videoPath = videoPath;
    }

    public String getAppPath() {
        return appPath;
    }

    public void setAppPath(String appPath) {
        this.appPath = appPath;
    }

    public String getCommonPath() {
        return commonPath;
    }

    public void setCommonPath(String commonPath) {
        this.commonPath = commonPath;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getHomeDir() {
        return homeDir;
    }

    public void setHomeDir(String homeDir) {
        this.homeDir = homeDir;
    }

    public String getUploadType() {
        return uploadType;
    }

    public void setUploadType(String uploadType) {
        this.uploadType = uploadType;
    }

    public String getDownloadDir() {
        return downloadDir;
    }

    public void setDownloadDir(String downloadDir) {
        this.downloadDir = downloadDir;
    }

    public String getDownloadPath() {
        return downloadPath;
    }

    public void setDownloadPath(String downloadPath) {
        this.downloadPath = downloadPath;
    }

    public String getZipFileName() {
        return zipFileName;
    }

    public void setZipFileName(String zipFileName) {
        this.zipFileName = zipFileName;
    }

    public String getImgType() {
        return imgType;
    }

    public void setImgType(String imgType) {
        this.imgType = imgType;
    }

    public String getCodePath() {
        return codePath;
    }

    public void setCodePath(String codePath) {
        this.codePath = codePath;
    }

}
